import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        int arr[] = {3,2,2,1,1,1,2,2,2,2,3};
        Arrays.sort(arr);
        int num = (arr.length/2);
        System.out.println(arr[num]);
    }
}
